<!DOCTYPE html>
<html>
<head lang="zh-CN">
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
	content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<meta name="keywords" content="">
<meta name="description" content="">
<meta name="format-detection" content="telephone=no, email=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="apple-touch-icon-precomposed" href="<%=basePath%>favicon.ico" />

<script>
	var _provinceId = '';
	var isLogin = 'false' == 'true';
</script>

<title>修改密码</title>
<link rel="stylesheet" href="<%=basePath%>css/common/normalize.css">
<link rel="stylesheet" href="<%=basePath%>/css/user/login.css">
<link rel="stylesheet" href="<%=basePath%>css/common/iconfont.css">
</head>

<body>
	<div class="m-wrapper">
		<jsp:include page="header_member.jsp"></jsp:include>
		<div class="pad30">
			<div class="tinput">
				<i class="icon-font icon-people licon d3"></i> <i
					class="icon-font ricon d3 icon_close"></i> <input class="pinput"
					type="text" id="rphone" value="" placeholder="请输入手机号">
			</div>
			<div class="tinput">
				<i class="icon-font icon-lock licon d3 "></i> <input class="pinput"
					type="password" id="code" placeholder="请输入短信验证码">
			</div>

			<a class="logbtn" href="javascript:void(0);" onclick='getCode()'>获取验证码</a>
			<a class="logbtn" href="javascript:void(0);" onclick='next()'>下一步</a>
		</div>

		<div class="tc_loading">
			<img src="/img/loading.gif" width="28px" height="28px">
			<div>加载中…</div>
		</div>
		<!--tab category:end-->


		<jsp:include page="footer.jsp"></jsp:include>
		<!--底部:end-->
	</div>

	<style>
.tc_loading {
	z-index: 9998;
	width: 36%;
	height: 60px;
	text-align: center;
	border-radius: 5px;
	position: fixed;
	top: 50%;
	left: 50%;
	margin-top: -35px;
	margin-left: -18%;
	font-size: 14px;
	color: #fff;
	background-color: rgba(0, 0, 0, .7);
	padding-top: 10px;
	display: none;
}
</style>

	<script type="text/javascript" src="<%=basePath%>js/zepto.min.js"></script>
	<script type="text/javascript" src="<%=basePath%>js/util.js"></script>
	<script type="text/javascript" src="<%=basePath%>js/head.js"></script>

	<script type="text/javascript">
		var code = "";
		$("#header_title").html("忘记密码");
		
		//手机验证码
		function getCode() {
			var phone = $("#rphone").val();
			if(phone==""){
				alert("手机号不能为空");
				return;
			}
			$.ajax({
				type : "post",
				url : "<%=basePath%>getcode",
				data : "cMob=" + phone,
				success : function(msg) {
					var info = eval('(' + msg + ')');
					if(info.code!="0000"){
						alert(info.information);
					}else{
						code = info.information;
					}
				}
			})
		}
		
		function next(){
			var phone = $("#rphone").val();
			var phonecode = $("#code").val();
			if(phone==""||phonecode==""){
				alert("请填写完整信息");
				return;
			}
			if(code!=phonecode){
				alert("验证码不正确");
				return;
			}
			location.href="<%=basePath%>mobile/forgetpwdstep2?phone="+phone;
		}
	</script>
</body>
</html>